package cn.zjyj.module.zjyj.controller.admin.device.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.zjyj.framework.common.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.zjyj.framework.common.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备分页 Request VO")
@Data
public class DevicePageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "名称", example = "李四")
    private String name;

    @Schema(description = "供应商id", example = "1690")
    private Long supplierId;

    @Schema(description = "设备组id", example = "30501")
    private Long groupId;

    @Schema(description = "品牌")
    private String brand;

    @Schema(description = "型号")
    private String model;

    @Schema(description = "设备规格")
    private String specification;

    @Schema(description = "是否特种设备")
    private Integer isSpecialEquipment;

    @Schema(description = "使用描述")
    private String useDescribe;

    @Schema(description = "是否需要检修")
    private Integer isNeedRepair;

    @Schema(description = "检修周期，单位：天")
    private Integer repairCycle;

    @Schema(description = "检修许可证")
    private String repairPermitCard;

    @Schema(description = "检修原因", example = "不香")
    private String repairReason;

    @Schema(description = "是否需要维护")
    private Integer isNeedMaintain;

    @Schema(description = "维护周期，单位：天")
    private Integer maintainCycle;

    @Schema(description = "是否需要计量")
    private Integer isNeedFitMetering;

    @Schema(description = "计量周期，单位：天")
    private Integer fitMeteringCycle;

}